// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from './axios'
Vue.prototype.$axios = axios
require('./mock.js')

import vuerouter from 'vue-resource'
import 'jquery'
/*import http from './utils/http'*/
/*Vue.config.productionTip = false*/

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
var deviceWidth = document.documentElement.clientWidth;

if(deviceWidth > 750) deviceWidth = 750;

document.documentElement.style.fontSize = deviceWidth / 7.5 + 'px';

window.onresize=function(){

  var deviceWidth = document.documentElement.clientWidth;

  if(deviceWidth > 750) deviceWidth = 750;

  document.documentElement.style.fontSize = deviceWidth / 7.5 + 'px';


};
